package com.mls.fivedistrict.dao;

import com.mls.fivedistrict.pojo.News;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 新闻 Mapper 接口
 * </p>
 *
 * @author Five Team
 * @since 2018-05-15
 */
public interface NewsMapper extends BaseMapper<News> {
    boolean addReadCount(Long id);

    boolean addLikeCount(Long id);

    boolean addShareTimes(Long id);

    boolean addCommentTimes(Long id);

    boolean cutReadCount(Long id);

    boolean cutLikeCount(Long id);

    boolean cutShareTimes(Long id);

    boolean cutCommentTimes(Long id);

    News selectNewsDetail(@Param("id") Long id);

    int mofiyReward();
}
